package com.huoyun.userAdmin.service;

import com.huoyun.userAdmin.bean.UserDetail;
import com.huoyun.userAdmin.dao.UserDetailDao;

public class UserDetailServiceImpl implements UserDetailService {

	private UserDetailDao userDetailDao;
	
	@Override
	public void saveUserDetail(UserDetail userDetail) 
	{
		userDetailDao.saveUserDetail(userDetail);
	}

	@Override
	public UserDetail getUserDetailByUserId(long userId) 
	{
		return userDetailDao.getUserDetailByUserId(userId);
	}

	@Override
	public void updateUserBaseInfo(UserDetail userDetail) 
	{
		userDetailDao.updateUserBaseInfo(userDetail);
	}

	@Override
	public void updateUserContactInfo(UserDetail userDetail) 
	{
		userDetailDao.updateUserContactInfo(userDetail);
	}

	@Override
	public void delete(long userId) 
	{
		userDetailDao.delete(userId);
	}

	public UserDetailDao getUserDetailDao() {
		return userDetailDao;
	}

	public void setUserDetailDao(UserDetailDao userDetailDao) {
		this.userDetailDao = userDetailDao;
	}

}
